< previous page page_639 next page >

Page 639
The MonthView Control
The drop-down calendar portion of the DateTimePicker control is actually another custom control called the MonthView control (see Figure 31.2). When you use this control as a separate control, it has many properties that allow you to select a range of dates and display multiple months at one time.
Examples Filename: MonthView.frm
8160-0639a.gif
Figure 31.2
A MonthView control example.
Common Properties of the MonthView Control
Youll use many properties with the MonthView control. In addition to all the runtime properties of the DateTimePicker control you learned about earlier, the MonthView control also has many unique properties, as listed in Table 31.5.
Table 31.5 Unique Properties of the MonthView Control.
PropertyDescription
MonthColumnsUse this property to display multiple month views side by side. The first column displays one month, the next month is displayed in the next column, and so on.
MonthRowsThis property can be used to display multiple month views up and down. The one on top is the first month, the one below is the next month, and so on.
MultiSelectSet this property to True if you want to allow the user to select multiple dates from the MonthView control.
MaxSelCountIf youve set the MultiSelect property to a True value, this property will specify the maximum number of days the user can select by highlighting them in the MonthView control.

(table continued on next page)

 
< previous page page_639 next page >

If you like this book, buy it!